package com.example.mybatis.controller;


import com.example.mybatis.service.impl.RollbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class RollbackController {

    @Autowired
    private RollbackService rollbackService;

    @RequestMapping("/rollback")
    public String rollback(){
        rollbackService.rollback();
        return "ok";
    }


}
